package com.training;

public class TwoStringssync {
	synchronized static void print(String str1, String str2) {

		System.out.print(str1);

		try {
		Thread.sleep(600);
		} catch (InterruptedException ie) 
		{ 
		ie.printStackTrace();
		}
		System.out.println(str2);
		}
		}

	